{% extends "base.html" %}

{% block title %}Site signature{% endblock %}
{% block heading %}Site signature{% endblock %}

{% block leftmenu %}
	<a href='/sitesigs'>Cancel</a><br/>
{% endblock %}

{% block content %}
		
		<form name='mainform' action='/editsitesig' method='post'>
		{% if sig.key %}
			<input type='hidden' name='id' value='{{sig.key.id}}' />
		{% else %}
			<input type='hidden' name='new_sig' value='True' />
		{% endif %}

		<table>
			<tr>
				<td>System:</td>
				<td><input type='text' name='system' value='{{sig.system}}' /></td>
			</tr>
			<tr>
				<td>Sig code:</td>
				<td><input type='text' name='sig_code' value='{{sig.sig_code}}' /></td>
			</tr>
			<tr>
				<td>Type:</td>
				<td><input type='text' name='site_type' value='{{sig.site_type}}' /></td>
			</tr>	
			<tr>
				<td>Started:</td>
				<td><input type='checkbox' name='started' {% if sig.started %}checked="checked"{% endif %} value="started"/></td>
			</tr>			
			<tr>
				<td>Expires:</td>
				<td><input type='text' name='expires_day' value='{{sig.expires_day}}' /></td>
			</tr>			
			<tr>
				<td>Expired:</td>
				<td><input type='checkbox' name='expired' {% if sig.expired %}checked="checked"{% endif %} value="expired"/></td>
			</tr>			
			<tr>
				<td>&nbsp;</td>
				<td><input type='submit' value='Save' /></td>
			</tr>	
		</table>

		</form>
		<script type="text/javascript">
			document.mainform.sig_code.focus();
			document.mainform.sig_code.select();
		</script>
{% endblock %}
